<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="wd" uri="/wd-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head> 
    <link href="${path }/back/${themeBack}/css/css.css" rel="stylesheet" type="text/css" /> 
    <wd:headJquery/>
    <script type="text/javascript" src="${path }/back/${themeBack}/js/js.js"></script>
</head>
<body id="left_body">
<table>
	<tr>
		<td>
			<table id="title_table">
				<tr><td><img src="${path }/back/${themeBack}/images/title.gif"></td></tr>
				<tr>
					<td id="exit">
						<a href="<s:url action="welcome"/>" target="main_frame"><s:text name="main" /></a>|
						<a href="<s:url action="loginOut"/>" target="_parent"><s:text name="exit" /></a>
	      			</td>
	      		</tr>	
				<tr><td id="userInfo">
				    <table>
				      <tr>
				        <td><a href="<s:url action="q_user_changeInfo"/>" target="main_frame"><s:text name="edit" /><s:text name="info" /></a></td>
				        <td><a href="<s:url action="q_user_changePwd"/>"  target="main_frame"><s:text name="edit" /><s:text name="pwd" /></a></td>
				      </tr>
				    </table>
			    </td></tr>
			</table>
		</td>
	</tr>
<s:set name="menu" value="%{getUserMenu()}" scope="page" />
<s:iterator id="key" value="#attr.menu.keySet()">
	<tr><td>
		<table class="menu_main_table" cellspacing="1">
			<tr><td class="menu_main_td"><s:property value="%{getMenuHelper().getName(#key)}"/></td></tr>
			<tr><td>
				<div class="hide">
					<table class="menu_table" cellspacing="1">
						<s:iterator value="#attr.menu.get(#key)" id="id">
							<s:set name="bean" value="%{getOperateHelper().get(#id)}" scope="page" />
							<tr><td class="menu_td">
								<a href="<s:url action="%{#attr.bean.link}"/>" target="main_frame"><s:property value="#attr.bean.name"/></a>
							</td></tr>	
						</s:iterator>					
					</table>
				</div>
			</td></tr>
		</table>
	</td></tr>
</s:iterator>
</table>
</body>
</html>